#ifndef _BASIC_H_
#define _BASIC_H_
/*
 * Design by  free.wang <freefis@gmail.com>
 * Licence unser BSD  lisence
 * Complete on May 30 21:30 , 2009 
 *
 * Environment:
 *     GCC 4.3.2
 *     Ubuntu / Linux i386
 *     Mac OS X / FreeBSD 4.x
 */
#include <string.h>
#include <stdlib.h>                
#include <stdio.h>
#include "random.h"
#include "calculate.h"

/*
 * 变异 variation()
 * 交叉 cross ()
 */


typedef struct Population{
    double parement[3][6];
    double result;
} plt;                  

plt * init_plt();

void 
pltshow(plt * population);

void 
natural_selection(plt * Top5Population[5],plt * ExamplePopulation[100]);




/* random seed 个体*/
void 
generate_seed(double seed[3][6]);

          
                            

        

void 
generate_example_population(plt * ExamplePopulation[100]);
#endif
